<?php
namespace Admin\Model;
use Think\Model\RelationModel;

class ArticleModel extends RelationModel
{
    protected $_link = array(
        'User' => array(
            'mapping_type' => self::BELONGS_TO,
            'foreign_key' => 'user_id',
            'mapping_fields'=> 'name',
            'as_fields'=> 'name',
        ),
    );
}
